<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@include file="/includes.jsp"%>
<%@page import="java.io.Serializable"%>
<%@taglib uri='/WEB-INF/cewolf.tld' prefix='cewolf' %>

<% GanttChartDTO ganttChartDTO = (GanttChartDTO)session.getAttribute("ganttChartDTO"); %>

<div class="layout">
    <table class="layout" cellspacing="0">
        <tr>
            <td class="layout">
                <jsp:useBean id="ganttChart" class="com.velocityme.www.utility.GanttChartData"/>
                <cewolf:chart id="gantt" type="gantt" showlegend="false">
                    <cewolf:data>
                        <cewolf:producer id="ganttChart">
                            <cewolf:param name="ganttChartDTO" value="<%=(Serializable)ganttChartDTO%>"/>
                        </cewolf:producer>
                    </cewolf:data>
                </cewolf:chart>
                <cewolf:img chartid="gantt" renderer="cewolf" width="800" height="<%=ganttChartDTO.getNumBars()*16+20%>"/>
            </td>
        </tr>
    </table>
</div>